

<link href="/car/car.css"  type="text/css" rel="stylesheet">
<div class="car_menu">

<div class="car_body_z">
    <span  id="id_A"><a href="#A">A</a></span>
    <span  id="id_B"><a href="#B">B</a></span>
    <span  id="id_C"><a href="#C">C</a></span>
    <span  id="id_D"><a href="#D">D</a></span>
    <span  id="id_E"><a href="#E">E</a></span>
    <span  id="id_F"><a href="#F">F</a></span>
    <span  id="id_G"><a href="#G">G</a></span>
    <span  id="id_H"><a href="#H">H</a></span>
    <span  id="id_I"><a href="#I">I</a></span>
    <span  id="id_J"><a href="#J">J</a></span>
    <span  id="id_K"><a href="#K">K</a></span>
    <span  id="id_L"><a href="#L">L</a></span>
    <span  id="id_M"><a href="#M">M</a></span>
    <span  id="id_N"><a href="#N">N</a></span>
    <span  id="id_O"><a href="#O">O</a></span>
    <span  id="id_P"><a href="#P">P</a></span>
    <span  id="id_Q"><a href="#Q">Q</a></span>
    <span  id="id_R"><a href="#R">R</a></span>
    <span  id="id_S"><a href="#S">S</a></span>
    <span  id="id_T"><a href="#T">T</a></span>
    <span  id="id_U"><a href="#U">U</a></span>
    <span  id="id_V"><a href="#V">V</a></span>
    <span  id="id_W"><a href="#W">W</a></span>
    <span  id="id_X"><a href="#X">X</a></span>
    <span  id="id_Y"><a href="#Y">Y</a></span>
    <span  id="id_Z"><a href="#Z">Z</a></span>

</div>
</div>
<div class="car_box">
<?php
	$key=("key");
	$curl = curl_init();
	  curl_setopt_array($curl, array(
	  CURLOPT_URL => "http://apis.haoservice.com/lifeservice/car/GetSeries?key=".$key,
	  CURLOPT_RETURNTRANSFER => true,
	  CURLOPT_ENCODING => "",
	  CURLOPT_MAXREDIRS => 10,
	  CURLOPT_TIMEOUT => 30,
	  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
	  CURLOPT_CUSTOMREQUEST => "GET",
	));

	$response = curl_exec($curl);
	$err = curl_error($curl);

    $c_id=$_GET['c_id'];
    $car=$_GET['car'];

    echo"<style>

#i".$c_id.",#i".$car."{

    display: block;
                      width: 100%;
                      height: 30px;
                      background: #f3f3f3;
                      /* background-size: 30px 30px;
                      background-image:url(/img/jjj.png);
                      background-position:0px 0px;
                      background-repeat:no-repeat;*/
                      border: solid 1px #bfbfbf;

                      line-height: 30px;
}

    </style>";




	curl_close($curl);


	if ($err) {
	  echo "cURL Error #:" . $err;
	  exit;
	} else { //获取到了数据
	  $obj = json_decode($response,true); 



   /*     echo("<pre>");
       var_dump($obj);
       echo("</pre>");

	 foreach ($obj['result'] as $key => $value) {
	  	echo "<div class='thecar_body'>";
	  	echo "<span class='car_span3'>".$value['L']."</span>";
	  	echo("<br>");
	  	echo "<span class='car_span1'>品牌ID:</span>". $value['I'].' &nbsp;'; 
	  	echo "<span class='car_span2'>品牌名称 :</span> ". $value['N'].' &nbsp;';
	  	
	  	foreach($value['List'] as $k => $value2){
	  		echo "<div class='thecar_list'>";
	  		echo "<span class='car_span4'>分类ID :</span>".$value2['I'].' &nbsp;';
	  		echo "<span class='car_span5'>分类名称：</span>" .$value2['N'].' &nbsp;';
	  		foreach($value2['List'] as $n=>$value3){
	  			echo "<div class='thecar_list_show'>";
	  			echo "<span class='car_span6'>车系ID:</span> ".$value3['I'].' &nbsp;';
	  			echo "<span class='car_span7'>车型类别名称：</span>".$value3['N'].' &nbsp;';
	  			echo "</div>";
	  		}

	  		echo "</div>";
	  	}
	  	echo "<br>";
	  	echo "</div>";
	  }
*/

foreach ($obj['result'] as $key => $value) {
	  	echo "<div class='thecar_body'>";
	  	echo "<span class='car_span3' id='".$value['L']."' name='".$value['L']."'>".$value['L']."</span>";
	  //	echo("<br>");
	  	
	  	echo "<span class='car_span2'> ". $value['N'].' </span>';
	  	
	  	foreach($value['List'] as $k => $value2){
	  		echo "<div class='thecar_list'>";
	  		
	  		echo "<span class='car_span5'>" .$value2['N'].' </span>';
	  		foreach($value2['List'] as $n=>$value3){
	  			echo "<div class='thecar_list_show'>";
	  			
	  			$pid=$value3['I'];
	  			echo "<span class='car_span7'  id='i".$value3['I']."'  name='".$value3['I']."'>
	  			<a href='/index.php?s=photo&c_id=".$value3['I']."#i".$value3['I']."'>".$value3['N'].'</a> 
	  			</span>';

	  			echo "</div>";
	  		}

	  		echo "</div>";
	  	}
	  	echo "<br>";
	  	echo "</div>";
	  }













    }


?>
</div>







<div class="car_box2">










<?php

$c_id=$_GET['c_id'];
$car=$_GET['car'];





    if(isset($c_id)){
       include "car_id.php";
       echo"<style>.chexing_y{display:block !important;}</style>";
      }

    if(isset($car)){
    include "/car/car_body.php";
  }




?>










